package com.ruoyi.common.result;

import lombok.Data;

/**
 * @author Xiexingxie
 * @date 2022/11/15 下午 02:19
 */

@Data
public class PlateJsonResult {

    private boolean flag;

    private int code;
    
    private String message;

    private Object data;

    public static PlateJsonResult success(String message, Object data) {
        PlateJsonResult jsonResult = new PlateJsonResult();
        jsonResult.setFlag(true);
        jsonResult.setMessage(message);
        jsonResult.setData(data);
        return jsonResult;
    }

}
